package util;
/***
 * 常量类
 * @author zhangqing *
 */
public class Constants {
	/**动作类型*/
	public static final class AVTIVE_TYPE{
		/**用户连接*/
		public static final int CONNECT = 1;
		/**重新连接*/
		public static final int RE_CONNECT = 2;
		/**丢失连接*/
		public static final int DES_CONNECT = 3;
		/**退出*/
		public static final int CLOSE_CONNECT = 4;
		/**创建对象*/
		public static final int CREATE_OBJ = 5;
		/**创建用户*/
		public static final int CREATE_USER = 6;
		/**摧毁对象*/
		public static final int DESTROY_OBJ = 7;
		/**请求同步数据*/
		public static final int SYNC_DATA = 8;
		/**登录*/
		public static final int LOGIN = 11;
		/**弹出消息*/
		public static final int ALERT = 12;
		/**加入游戏*/
		public static final int JOIN_GAME = 13;
		/**退出游戏*/
		public static final int OUT_GAME = 14;
		/**加入游戏完成*/
		public static final int JOIN_GAME_COMPLETE = 15;
		/**退出登录*/
		public static final int LOGOUT = 16;
		/**保存临时信息*/
		public static final int SAVE_TEMP = 17;
		
		
		/**角色列表*/
		public static final int ROLE_LIST = 1001;
		/**添加角色*/
		public static final int ROLE_ADD = 1002;
		/**删除角色*/
		public static final int ROLE_DELETE = 1003;
		/**更新角色*/
		public static final int ROLE_UPDATE = 1004;
		
		/**获取角色物品列表*/
		public static final int ITEM_ROLE = 2001;
		/**背包物品列表*/
		public static final int ITEM_ROLE_PACKAGE = 2002;
		/**角色装备列表*/
		public static final int ITEM_ROEL_EQUIP = 2003;
		/**物品使用*/
		public static final int ITEM_USE = 2004;
		/**物品改变，位置或数量*/
		public static final int ITEM_CHANGE = 2005;
		/**用户物品列表*/
		public static final int ITEM_USER = 2006;
		/**添加用户物品*/
		public static final int ITEM_USER_ADD = 2007;
		/**删除用户物品*/
		public static final int ITEM_USER_DELETE = 2008;
		/**物品属性更新*/
		public static final int ITEM_USER_VAL_CHANGE = 2009;
		
		
	}
	/**错误代码*/
	public static final class RESULT_CODE{
		/**成功*/
		public static final int SUCCESS = 0;
		/**失败*/
		public static final int FAIL = 1;
	}
	/**常量*/
	public static final class CONS{
		/**用户状态正常*/
		public static final int USER_STATE_OK = 0;
		/**用户状态异常*/
		public static final int USER_STATE_ERROR = 1;
		/**物品类型，库模型*/
		public static final int PART_TYPE_MODEL = 0;
		/**物品类型用户*/
		public static final int PART_TYPE_USER = 1;
	}	
}
